package com.jx.driving.response;

import com.jx.driving.message.TimeTerminalResponseMessage;
import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.StringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 
 * 视频
 * @author renzhichao
 *
 */
@TerminalAnnotation
public class Terminal0x8705Response extends TimeTerminalResponseMessage{
	
	/**
	 * 摄像头类型，０：后置，１：前置
	 */
	@ByteAnnotation(order = 1)
	private short cameraChannel;
	@WordAnnotation(order = 2)
	private int streamTime;//推流时间，单位：秒
	@StringAnnotation(order = 3)
	private String pushUrl;//推流地址
	
	public short getCameraChannel() {
		return cameraChannel;
	}
	public void setCameraChannel(short cameraChannel) {
		this.cameraChannel = cameraChannel;
	}
	public int getStreamTime() {
		return streamTime;
	}
	public void setStreamTime(int streamTime) {
		this.streamTime = streamTime;
	}
	
	public String getPushUrl() {
		return pushUrl;
	}
	public void setPushUrl(String pushUrl) {
		this.pushUrl = pushUrl;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x8705Response [cameraChannel=").append(cameraChannel).append(", streamTime=")
				.append(streamTime).append(", pushUrl=").append(pushUrl).append("]");
		return builder.toString();
	}
	
}
